package com.bayss.web.mock.response;


/**
 * Created by px on 15/5/4.
 */
public enum MockAppCode {
    ///////////////////////////////////////系统错误代码
    _900(900, "服务器出现异常"),
    _200(200, "操作成功"),
    _100001(100001, "验证配置错误"),


    ///////////////////////////////////////业务错误代码
    _90000(90000, "亲，你没填%s哦"),
    _90001(90001, "参数(%s)不能为空"),
    _90002(90002, "参数(%s)长度不能超过(%s)"),
    _90003(90003, "参数(%s)长度不能小于(%s)"),
    _90004(90004, "参数(%s)不能含有特殊字符"),
    _90005(90005, "参数(%s)不能含有中文字符"),
    _90006(90006, "参数(%s)格式不正确"),
    _90007(90007, "参数IP(%s)格式不正确"),
    _90008(90008, "参数数字(%s)格式不正确"),
    _90009(90009, "参数电话(%s)格式错误"),
    _90010(90010, "参数时间(%s)格式错误"),
    _90011(90011, "参数(%s)长度不能小于"),
    _90012(90012, "参数(%s)长度不能小于"),;


    private int code;
    private String msg;

    MockAppCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
